package com.neu.wms.service.impl;/**
 * Author: JhonDai
 * Date: 2023/07/08/16:32
 * Version: 1.0
 * Description:
 */

import com.neu.wms.entity.SysMenu;
import com.neu.wms.mapper.SysMenuMapper;
import com.neu.wms.service.MenuService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * @author DAIJUNQIANG
 * @version 1.0
 * @description TODO
 * @date 2023/7/8 16:32
 */
@Service
public class MenuServiceImpl implements MenuService {


	@Autowired
	private SysMenuMapper sysMenuMapper;

	/**
	 * 根据角色id查询对应的菜单id
	 * @param uid
	 * @return
	 */
	@Override
	public Integer[] selectMenuIdByUid(Integer uid) {
		return sysMenuMapper.selectMenuIdByUid(uid);
	}

	@Override
	public List<SysMenu> queryMenu() {
		return sysMenuMapper.queryMenu();
	}
}
